'use strict';
const db = uniCloud.database()
const coll = db.collection('user')
exports.main = async (event, context) => {

	let res = await coll.where({
		_id: event.id
	}).update({
		pic: event.pic
	})
	return res
};
